tooltip: Look at the event's target widget
authorTimm Bäder <mail@baedert.org>
Fri, 18 Jan 2019 07:48:07 +0000 (08:48 +0100)
committerTimm Bäder <mail@baedert.org>
Fri, 18 Jan 2019 18:43:51 +0000 (19:43 +0100)
commit2353e0e03f33b23682a58451c25026b07737c3aa
tree65ab23cb725c5a83f3cbdd2c54f57e0c6a85268e
parent11f9ae8202463352bf7fe779876501760872c385
tooltip: Look at the event's target widget

Since we now have a widget whenever we query tooltips, we can as well
get the events target_widget if we have an event (which is what we do
when coming from gtkmain.c). This keeps us from searching the entire
widget hierarchy for the target event even though we've already done
that for pointing events in gtkmain.c

This reduced the work done in gtk_tooltip_handle_event in normal motion
events to basically nothing since we already did all the heavy lifting
when handling the pointing event in gtkmain.c
gtk/gtktooltip.c